import lib.problem as problem

class Problem001(problem.Problem):
	def __init__(self):
		problem.Problem.__init__(self, 1)
		
	def solve(self):
		sum = 0
		for i in range(1000):
			if (i % 3) == 0 or  (i % 5) == 0:
				sum += i
				
		return sum 

if __name__ == "__main__":
	print(Problem001().solveAndTime())